package com.example.rbac.service.impl;

import com.example.rbac.entity.RoleMenu;
import com.example.rbac.mapper.MenuMapper;
import com.example.rbac.mapper.RoleMenuMapper;
import com.example.rbac.service.RoleMenuService;
import com.google.common.collect.Lists;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

@Service
public class RoleMenuServiceImpl extends CurdServiceImpl<RoleMenuMapper, RoleMenu> implements RoleMenuService {


    @Override
    public int insertByMenuId(String menuId, List<String> roleIds, String state) {
        return repository.insertByMenuId(menuId, roleIds, state);
    }
}
